package com.yt.server.api.scheduling;

import java.util.Date;
import java.util.List;

/**
 * 调度业务接口(增、删、改、定期)
 * @author 刘晶
 */
public interface ISchedulingService{

	public static String BEAN_NAME = "schedulingService";

	public String addScheduledJob(int interval, IScheduledJob job);

	public String addScheduledOnceJob(long timeDelta, IScheduledJob job);

	public String addScheduledOnceJob(Date date, IScheduledJob job);
	
	public String addScheduledJobAfterDelay(int interval, IScheduledJob job, int delay);

	public void pauseScheduledJob(String name);
	
	public void resumeScheduledJob(String name);	
	
	public void removeScheduledJob(String name);

	public List<String> getScheduledJobNames();
}
